<?php

namespace app\admin\model\choi;

use think\Model;

class TeacherTag extends Model
{
    protected $autoWriteTimestamp = false;
    /**
     * 教师标签
     */
    public static function getByTeacherId($teacherId)
    {
        return self::where('teacher_id', $teacherId)->column('tag_id');
    }

    /**
     * 删除标签
     */
    public static function del($teacherId, $tagId)
    {
        return self::where('teacher_id', $teacherId)->where('tag_id', $tagId)->delete();
    }
}
